package com.green.api.model;

import java.io.Serializable;

/**
 * 返回结果
 * 
 * @author fengwenjin
 * 
 * @param <T>
 */
public class Result<T> implements Serializable {

	private static final long serialVersionUID = -257307306076065785L;
	private boolean success;// 是否成功
	private String message;// 成功或失败的消息
	private T data;// 结果数据

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

}
